package com.csust.automaticteach.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.csust.automaticteach.model.dto.errorpractice.ErrorPracticeQueryRequest;
import com.csust.automaticteach.model.entity.ErrorPractice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.csust.automaticteach.model.vo.errorpratice.ErrorPracticeVO;

import java.util.List;

/**
* @author 钰玟
* @description 针对表【t_error_practice(错题表)】的数据库操作Service
* @createDate 2025-07-12 14:34:17
*/
public interface ErrorPracticeService extends IService<ErrorPractice> {

    /**
     * 获取查询条件
     * @param errorPracticeQueryRequest 查询条件
     * @return 查询条件
     */
    QueryWrapper<ErrorPractice> getErrorPracticeQueryWrapper(ErrorPracticeQueryRequest errorPracticeQueryRequest);
    /**
     * 获取错误题VO列表
     * @param errorPractice 实体类 错误题
     * @return 错误题VO列表
     */
    ErrorPracticeVO getErrorPracticeVO(ErrorPractice errorPractice);
    /**
     * 获取错误题VO列表
     * @param records 错误题列表
     * @return 错误题VO列表
     */
    List<ErrorPracticeVO> getErrorPracticeVOList(List<ErrorPractice> records);

}
